//
//  SettingViewController.m
//  share_business
//
//  Created by baidufz on 2017/9/2.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import "SettingViewController.h"
#import "TextCell.h"

@interface SettingViewController ()
@property (weak, nonatomic) IBOutlet TextCell *serviceAgreementCell;
@property (weak, nonatomic) IBOutlet TextCell *systemEncyclopediaCell;
@property (weak, nonatomic) IBOutlet TextCell *feedbackCell;
@property (weak, nonatomic) IBOutlet UIView *clearCacheView;
@property (weak, nonatomic) IBOutlet UILabel *cacheLabel;

@end

@implementation SettingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initSetting];
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [self defaultMessageRightButton];
    self.navigationItem.title = @"设置";

}

- (void)initSetting {
    [self fillingTextCell:_serviceAgreementCell leftLabel:@"服务协议" rightLabel:@""];
    [self fillingTextCell:_systemEncyclopediaCell leftLabel:@"系统百科" rightLabel:@""];
    [self fillingTextCell:_feedbackCell leftLabel:@"意见反馈" rightLabel:@""];
    
    
}

- (void)fillingTextCell:(TextCell *)textCell leftLabel:(NSString *)left rightLabel:(NSString *)right {
    textCell.leftLabel.text = left;
    textCell.rightLabel.text = right;
}

- (IBAction)logout:(id)sender {
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
